$(function(){
	    $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		$("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		$("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
});

function bigCategoryChange(){
	var bigCategoryValue = $("#bigCategory option:selected").val();
	if(bigCategoryValue != ""){
		$('#smallCategory').html('加载中... ...');
		$.get('../market/loadByCid.shtml?cid='+bigCategoryValue+'&t='
			+ new Date().getTime().toString(36), function(mes) {
		var json = eval('(' + mes + ')');
		var str = ''
		for (var i = 0; i < json.length; i++) {
			if (i > 0 && i % 3 == 0)
				str += '<br/>';
			str += '<label><input type="checkbox" name="mid"  value="'
					+ json[i]['id'] + '"/>' + json[i]['name']
					+ '</label>&nbsp;&nbsp;&nbsp;&nbsp;';
		}
		$('#smallCategory').html(str);
	})
	}
}

function checkForm(){
	var ismarkSelect = false;
		var b = document.getElementsByName("mid");

		for (var i = 0; i < b.length; i++) {
			if (b[i].checked) {
				ismarkSelect = true;
				markstr += b[i].value;
				markstr += "_";
			}
		}
		if (!ismarkSelect) {
			alert('请选择所在商城');
			return false;
		}
		return true;
}